package org.hzz.common.utils;

import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONWriter;

/**
 * fastjson
 * @author 胖卡
 * @version 1.0.0
 * @date 2024/7/13
 */
public class FastJsonUtil {
    static JSONWriter.Context context =  new JSONWriter.Context(JSONWriter.Feature.PrettyFormat);
    public static String toJSONStr(Object o){

        return JSON.toJSONString(o,context);
    }
}
